
function SendCode(){
    var val = $("#phone")[0].value;
    console.log(val);
    //1.验证手机号码是否正确
    var verification = /^1[3|4|5|7|8]\d{9}$/;
    if (verification.test(val)){
        alert("格式正确");
    }else {
        alert("手机号码格式不正确");
    }

}


function Send_api(val) {
    var tel = $("#phone").val();
    $.get("/phone/fasongyanzhengma?tel=" + tel, function (result) {
        alert(result);
    })
}


